package org.simplextensions.ui.view;

import org.simplextensions.di.annotations.Registry;
import org.simplextensions.registry.IExtensionRegistry;
import org.simplextensions.ui.StatefulUIPartAdapter;

public abstract class AView<T extends IViewRegion> extends StatefulUIPartAdapter implements IView<T> {

	@Registry
	private IExtensionRegistry extensionRegistry;

	private T viewRegion;

	public void setFocus() {
	}

	public void init(T viewRegion) {
		this.viewRegion = viewRegion;
	}

	public IExtensionRegistry getExtensionRegistry() {
		return this.extensionRegistry;
	}

	public T getViewRegion() {
		return viewRegion;
	}

}
